package com.example.othree.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @Author Guoxixi
 * @Date 2025/02/18
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("drone_observation_data2")
public class Drone2 {
    @TableId(value = "id", type = IdType.AUTO)
    Integer id;

    @TableField(value = "equipment_name")
    String equipmentName;

    @TableField(value = "equipment_number")
    String equipmentNumber;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @TableField(value = "detection_Date")
    Date detectionDate;

    Double temp;
    @TableField(value = "PM1_0")
    int pm100;
    @TableField(value = "PM2_5")
    int pm25;
    int pm10;
    Double humidity;
    Double o3;
    String startTime;
    String endTime;
    int times;
    int direction;
    Double height;
    String city;

}
